package com.itheima.oop.Test01;

public class Subject {
    private String id;
    private String name;
    private String time;
    private String description;

    public Subject() {
    }

    public Subject(String id, String name, String time, String description) {
        this.id = id;
        this.name = name;
        this.time = time;
        this.description = description;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void show() {
        System.out.println("课程编号:" + id + "\t名称:" + name + "\t创建时间:" + time + "\t课程描述:" + description);
    }
}
